package com.vector.demo.mapper;

import com.vector.demo.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface TeacherMapper {
    //添加
    int addTeacher(Teacher teacher);
    //删除教师
    int deleteTeacher(Integer id);
    //更新教师信息
    int updateTeacher(Teacher teacher);
    //通过教师id查询教师
    Teacher queryTeacherById(int t_id);
    //通过教师名和教师密码查询教师
    Teacher queryTeacherByNameAndPassword(@Param("t_name") String t_name, @Param("t_pwd") String t_pwd);
    //查询全部教师
    List<Teacher> queryAllTeacher();
}